package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjWorkTeamEmp;
import com.zb.vo.WorkTeamEmpVo;

import java.util.List;

/**
 * <p>
 * 工单客服组人员表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-09-12
 */
public interface ZjWorkTeamEmpService extends IService<ZjWorkTeamEmp> {

    /**
     * 新增、修改、删除客服组人员
     * @param custaccId 商家ID
     * @param workTeamId 工单客服组ID
     * @param teamEmps
     * @param delTeamEmpIds
     */
    void save(Long custaccId, Long workTeamId, List<WorkTeamEmpVo> teamEmps, List<Long> delTeamEmpIds);

    /**
     * 根据工单客服组ID查询客服组人员
     * @param workTeamIds
     * @return
     */
    List<ZjWorkTeamEmp> getByWorkTeamIds(List<Long> workTeamIds);

    /**
     * 根据工单客服组ID查询客服组人员
     * @param workTeamId
     * @return
     */
    List<ZjWorkTeamEmp> getByWorkTeamId(Long workTeamId);

    /**
     * 根据工单客服组ID集合删除客服组人员
     * @param workTeamIds
     */
    void deleteBatchByWorkTeamId(List<Long> workTeamIds);
}
